<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
        	<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
        <script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>
		<style type="text/css"> 
         #preview{width:100px;height:100px;border:1px solid #000;overflow:hidden;} 
         #imghead {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image);} 
        </style> 
<title>客户信息</title>
<script type="text/javascript">  
        function previewImage(file) 
        { 
          var MAXWIDTH  = 100;  
          var MAXHEIGHT = 100; 
          var div = document.getElementById('preview'); 
          if (file.files && file.files[0]) 
          { 
              div.innerHTML ='<img id=imghead>'; 
              var img = document.getElementById('imghead'); 
              img.onload = function(){ 
                var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight); 
                img.width  =  rect.width; 
                img.height =  rect.height; 
//                 img.style.marginLeft = rect.left+'px'; 
                img.style.marginTop = rect.top+'px'; 
              } 
              var reader = new FileReader(); 
              reader.onload = function(evt){img.src = evt.target.result;} 
              reader.readAsDataURL(file.files[0]); 
          } 
          else //兼容IE 
          { 
            var sFilter='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'; 
            file.select(); 
            var src = document.selection.createRange().text; 
            div.innerHTML = '<img id=imghead>'; 
            var img = document.getElementById('imghead'); 
            img.filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src = src; 
            var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight); 
            status =('rect:'+rect.top+','+rect.left+','+rect.width+','+rect.height); 
            div.innerHTML = "<div id=divhead style='width:"+rect.width+"px;height:"+rect.height+"px;margin-top:"+rect.top+"px;"+sFilter+src+"\"'></div>"; 
          } 
        } 
        function clacImgZoomParam( maxWidth, maxHeight, width, height ){ 
            var param = {top:0, left:0, width:width, height:height}; 
            if( width>maxWidth || height>maxHeight ) 
            { 
                rateWidth = width / maxWidth; 
                rateHeight = height / maxHeight; 
                  
                if( rateWidth > rateHeight ) 
                { 
                    param.width =  maxWidth; 
                    param.height = Math.round(height / rateWidth); 
                }else 
                { 
                    param.width = Math.round(width / rateHeight); 
                    param.height = maxHeight; 
                } 
            } 
              
            param.left = Math.round((maxWidth - param.width) / 2); 
            param.top = Math.round((maxHeight - param.height) / 2); 
            return param; 
        } 
		$(function(){  
		   var disabled = true;   
		     $('#a2').click(function(){  
			        if(!disabled){  
				 $('input[id="title2"]').attr('disabled', 'disabled');   
						} else {     
							 $('input[id="title2"]').removeAttr('disabled');   
								}    
								 disabled = !disabled;
									  }); }); 

$(function(){  
		   var disabled = true;   
		     $('#a1').click(function(){  
			        if(!disabled){  
				 $('input[id="title1"]').attr('disabled', 'disabled');   
						} else {     
							 $('input[id="title1"]').removeAttr('disabled');   
								}    
								 disabled = !disabled;
									  }); }); 
</script>  
</head>
<body>
<div class="margin clearfix">
 <div class="stystems_style">
  <div class="detailed_style clearfix">
 <em class=""></em>
  <div class="shop_logo"><img src="images/detailnoimg.png" /></div>
   <ul class="shop_content clearfix">
    <li class="shop_name"><label class="label_name">企业名称：</label><span class="info">旭派电池</span> 
    <div class="Authenticate"><i class="icon-yxrz"></i><i class="icon-yhk"></i><i class="icon-sjrz"></i><i class="icon-grxx"></i></div></li>
    <li><label class="label_name">企业类型：</label><span class="info">国企</span></li>
	<li><label class="label_name">企业规模：</label><span class="info">2000人</span></li>
    <li><label class="label_name">经营范围：</label><span class="info">汽车、飞机</span></li>
    
    <li><label class="label_name">状&nbsp;&nbsp;&nbsp;&nbsp;态：</label><span class="info">待审核</span></li>
    <li><label class="label_name">法人姓名：</label><span class="info">张小泉</span></li>
    
    <li><label class="label_name">电子邮箱：</label><span class="info">789@qiye.com</span></li>
    <li><label class="label_name">固定电话：</label><span class="info">025-56787876</span>&nbsp;&nbsp;
	<i style="color:#FF0000">*</i><a id="a2" onclick="member_edi()"><i style="color:#999999">修改</i></a>
	</li>
	<li><label class="label_name">平台积分：</label><span class="info">10</span></li>
	<li><label class="label_name">详细地址：</label><span class="info">河北省河北市</span>&nbsp;&nbsp;
	<i style="color:#FF0000">*</i><a id="a1" onclick="member_edit()"><i style="color:#999999">修改</i></a>
	</li>
   </ul>
 </div><br/><br/>
  <div class="Store_Introduction">
  <div class="title_name">企业简介</div>
   <div class="info">
   <br />
   </div>
 </div>
		<div class="tab-content">
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">客户关系： </label>
          <label class="col-sm-1 control-label no-padding-right" style="left:-80px" >客户 </label>
          </div>
		 <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">签订时间： </label>
          <label class="col-sm-1 control-label no-padding-right" style="left:-35px" >2015/02/01 </label>
          </div>
         <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">签订人员： </label>
          <label class="col-sm-1 control-label no-padding-right" style="left:-80px" >张杰 </label>
          </div>
		  <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">合同有无： </label>
          <label class="col-sm-1 control-label no-padding-right" style="left:-95px" >无</label>
          </div>
          <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">合同名称： </label>
          <label class="col-sm-1 control-label no-padding-right" style="left:-80px" >  </label>
          </div>
          <div class="Button_operation"> 
				<button onclick="history.go(-1)" class="btn btn-default radius" type="button">&nbsp;&nbsp;返回上一步&nbsp;&nbsp;</button>
			</div>
 
 </div>
</div>
<div class="add_menber" id="add_menber_style" style="display:none">
 <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">修改： </label>
          <div class="col-sm-9"><input type="text" id="website-title" value="" style=" width:400px" class="col-xs-10">
		  </div>
          </div> 
 </div>
 <div class="add_menber" id="add_menber_styl" style="display:none">
 <div class="form-group"><label class="col-sm-1 control-label no-padding-right" for="form-field-1">修改： </label>
          <div class="col-sm-9"><input type="text" id="website-title" value="" style=" width:400px" class="col-xs-10">
		  </div>
          </div>
 </div>		  
</body>
</html>
<script>

function member_edit(){
	  layer.open({
        type: 1,
        title: '修改地址',
		maxmin: true, 
		shadeClose:false, //点击遮罩关闭层
        area : ['700px' , ''],
        content:$('#add_menber_styl'),
		btn:['确认','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert("输入"+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('修改成功！',{
               title: '提示框',				
			icon:1,		
			  });
			   layer.close(index);	
		  }		  		     				
		}
    });
}
function member_edi(){
	  layer.open({
        type: 1,
        title: '修改电话',
		maxmin: true, 
		shadeClose:false, //点击遮罩关闭层
        area : ['700px' , ''],
        content:$('#add_menber_style'),
		btn:['确认','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert("输入"+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('修改成功！',{
               title: '提示框',				
			icon:1,		
			  });
			   layer.close(index);	
		  }		  		     				
		}
    });
}

</script>

    